package cn.stylefeng.guns.modular.hx.storage.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.storage.entity.HxStorageMoveRecord;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageMoveRecordParam;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStorageMoveRecordResult;
import cn.stylefeng.guns.modular.rest.hxStorageStock.vo.StorageMoveCntVo;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 移库记录表 服务类
 * </p>
 *
 * @author 
 * @since 2023-09-09
 */
public interface HxStorageMoveRecordService extends IService<HxStorageMoveRecord> {

    /**
     * 新增
     *
     * @author 
     * @Date 2023-09-09
     */
    void add(HxStorageMoveRecordParam param);

    /**
     * 删除
     *
     * @author 
     * @Date 2023-09-09
     */
    void delete(HxStorageMoveRecordParam param);

    /**
     * 更新
     *
     * @author 
     * @Date 2023-09-09
     */
    void update(HxStorageMoveRecordParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author 
     * @Date 2023-09-09
     */
    HxStorageMoveRecordResult findBySpec(HxStorageMoveRecordParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author 
     * @Date 2023-09-09
     */
    List<HxStorageMoveRecordResult> findListBySpec(HxStorageMoveRecordParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author 
     * @Date 2023-09-09
     */
    LayuiPageInfo findPageBySpec(HxStorageMoveRecordParam hxStorageMoveRecordParam, Long operateId,String condition);

    String removeStorage(HxStorageMoveRecordParam hxStorageMoveRecordParam, Long[] ids);

    ResponseData storageMoveCnt(StorageMoveCntVo storageMoveCntVo);

    void deleteByTime(String format);

	List<String> findOutTask(Long id);

	HxStorageMoveRecordResult count(HxStorageMoveRecordParam hxStorageMoveRecordParam, Long operateId, String condition);

	List<HxStorageMoveRecordResult> listAll(HxStorageMoveRecordParam hxStorageMoveRecordParam, Long operateId,
			String condition);

    LayuiPageInfo selectUser(HxStorageMoveRecordParam hxStorageMoveRecordParam, String condition);
}
